cmake_minimum_required(VERSION 3.20)
project(marching_cubes)

set(CMAKE_CXX_STANDARD 14)

include_directories(${PROJECT_SOURCE_DIR}/include)
link_directories(${PROJECT_SOURCE_DIR}/lib/x64)

aux_source_directory(src SRC_FILE)

add_executable(marching_cubes main.cpp ${SRC_FILE})
target_link_libraries(marching_cubes libopengl32.a libfreeglut.a glu32.dll)

file(COPY ${PROJECT_SOURCE_DIR}/third-party/x64/freeglut.dll DESTINATION ${PROJECT_BINARY_DIR})
